package edu.zju.gis.dbfg.server.mapper;

import edu.zju.gis.dbfg.common.base.BaseMapper;
import edu.zju.gis.dbfg.server.interceptor.UserAuth;
import edu.zju.gis.dbfg.server.model.ExternalDataSource;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExternalDataSourceMapper extends BaseMapper<ExternalDataSource, String> {
    //获取用户可以看到的公共外部数据源
//    @UserAuth
//    List<ExternalDataSource> search2(String userId);

    List<ExternalDataSource> search(String userId);
    int insert(ExternalDataSource externalDataSource);
    ExternalDataSource searchById(String id);
    int deleteByPrimaryKey(String id);
}
